home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 139
/
(Vol 139) Sep 24 2011.iso
/
Games
/
xtreme_tugboating.swf
/
scripts
/
frame_1
/
DoAction_2.as
next >
Wrap
Text File
|
2011-09-24
|
1KB
|
57 lines
camera = true;
Xparticles = true;
screenFlash = function()
{
_root.createEmptyMovieClip("screenFlsh",1);
_root.screenFlsh.beginFill(16777215,10001);
_root.screenFlsh.moveTo(0,0);
_root.screenFlsh.lineTo(450,0);
_root.screenFlsh.lineTo(450,450);
_root.screenFlsh.lineTo(0,450);
_root.screenFlsh.lineTo(0,0);
_root.screenFlsh.onEnterFrame = function()
{
this._alpha *= 0.9;
if(this._alpha <= 5)
{
this.removeMovieClip();
}
};
};
clearAll();
clearAll = function()
{
_root.ball.removeMovieClip();
_root.HUD.removeMovieClip();
_root.player.removeMovieClip();
_root.onEnterFrame = null;
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = _root._xscale;
i = _root.fishDepthReset;
while(i < _root.fishDepthMax)
{
_root["fish" + i].removeMovieClip();
i++;
}
i = _root.rocketDepthReset;
while(i < _root.rocketDepthMax)
{
_root["rocket" + i].removeMovieClip();
i++;
}
i = _root.meteorDepthReset;
while(i < _root.meteorDepthMax)
{
_root["meteor" + i].removeMovieClip();
i++;
}
i = _root.particleDepthReset;
while(i < _root.particleDepthMax)
{
_root["particle" + i].removeMovieClip();
i++;
}
};